<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 使用v-bind修改元素的属性 -->
    <div id="app">
        <span v-bind:title="msg" v-bind:style="color">
            鼠标悬停查看此处绑定的动态信息！
        </span>
    </div>
</body>
</html>
<script src="../js/vue.js"></script>

<script>
    var app = new Vue({
        el: "#app",
        data: {
            // msg: "hello world",
            msg: "页面加载于 " + new Date().toLocaleString(),
            color: "color: red;"
        }
    })
</script>
